From 58d2dabd7d4f400395e65e5ba5a9b1bb6969ba78 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 18 Mar 2016 09:50:12 +0100 Subject: [PATCH] x86: put kexec_reloc in its own section Since it wants to be page aligned, this alignment would force pointless alignment of .text in the intermediate built_in.o file(s), needlessly growing the overall text and binary size. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper Acked-by: David Vrabel --- xen/arch/x86/x86_64/kexec_reloc.S | 2 +- xen/arch/x86/xen.lds.S | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_64/kexec_reloc.S b/xen/arch/x86/x86_64/kexec_reloc.S index 7a16c8569f..85ab602af5 100644 --- a/xen/arch/x86/x86_64/kexec_reloc.S +++ b/xen/arch/x86/x86_64/kexec_reloc.S @@ -18,7 +18,7 @@ #include #include - .text + .section .text.kexec, "ax", @progbits .align PAGE_SIZE .code64 diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S index 961f48f780..e47771cec1 100644 --- a/xen/arch/x86/xen.lds.S +++ b/xen/arch/x86/xen.lds.S @@ -49,6 +49,7 @@ SECTIONS *(.text.cold) *(.text.unlikely) *(.fixup) + *(.text.kexec) *(.gnu.warning) _etext = .; /* End of text section */ } :text = 0x9090 -- 2.30.2